package com.tiancheng.trade.merchant.convert;

import com.tiancheng.trade.commom.web.model.response.MerchantPayRegResVO;
import com.tiancheng.trade.merchant.model.Merchant;
import com.tiancheng.trade.merchant.model.Organization;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgPageResVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 机构信息转换
 * @Date: create in 2024/12/11 20:58
 */
@Mapper(componentModel = "spring")
public interface OrganizationConvert {
    OrganizationConvert INSTANCE = Mappers.getMapper(OrganizationConvert.class);

    QueryOrgPageResVO convert(Organization organization);
    List<QueryOrgPageResVO> convert(List<Organization> organizations);
}
